#pragma once
#include "Item.h"

namespace Xps
{

	class LinkItem : public Item
	{
		QVector<QPointF> shape;
		Item* m_Parent;
		Item* m_Child;
		QPen pen;
		QPointF from;
		QPointF to;
		bool drawbounds;
		QPointF old_parentpos;
		QPointF old_childpos;
		int mode;
		int arrow;

	public:

		LinkItem(Item* parent, Item* child);
		Item* parent() { return m_Parent; };
		Item* child() { return m_Child; };
		QRectF	boundingRect() const;
		void	paint(QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget);
	};

}